home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime / Sample Code / QT Codec Acceleration / Samples / ExampleCodec / Components.k.h next >
Encoding:
C/C++ Source or Header  |  1997-02-26  |  4.1 KB  |  136 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Components.k.h
  3.  
  4.      Contains:    QuickTime interfaces
  5.  
  6.      Version:    
  7.  
  8.      DRI:        Jim Batson
  9.  
  10.      Copyright:    © 1984-1996 by Apple Computer, Inc.
  11.                  All rights reserved.
  12.  
  13.      Warning:    *** APPLE INTERNAL USE ONLY ***
  14.                  This file may contain unreleased API's
  15.  
  16.      BuildInfo:    Built by:            QuickTime
  17.                  With Interfacer:    2.0d12e5 (PowerPC native)
  18.                  From:                Components.i
  19.                      Revision:        0
  20.                      Dated:            4/25/96
  21.                      Last change by:    JB
  22.                      Last comment:    This is a fake header used so interfacer is happy.
  23.  
  24.      Bugs:        Report bugs to Radar component “System Interfaces”, “Latest”
  25.                  List the version information (from above) in the Problem Description.
  26.  
  27. */
  28. #ifndef __COMPONENTS_K__
  29. #define __COMPONENTS_K__
  30.  
  31. #include <Components.h>
  32.  
  33. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  34. /* Component Resource Extension flags */
  35. /* Set Default Component flags */
  36. /* RegisterComponentResource flags */
  37. #ifndef _PrivateThingManager_
  38. #endif
  39. /*  Structure received by Component:        */
  40. #ifndef _PrivateThingManager_
  41. #endif
  42. /*
  43.     The parameter list for each ComponentFunction is unique. It is 
  44.     therefore up to users to create the appropriate procInfo for their 
  45.     own ComponentFunctions where necessary.
  46. */
  47. /*
  48. *******************************************************
  49. * Required Component routines
  50. *******************************************************
  51. */
  52. /*
  53. *******************************************************
  54. *                                                        *
  55. *                  APPLICATION LEVEL CALLS                    *
  56. *                                                        *
  57. *******************************************************
  58. */
  59. /*
  60. *******************************************************
  61. * Component Database Add, Delete, and Query Routines 
  62. *******************************************************
  63. */
  64. /*
  65. *******************************************************
  66. * Component Instance Allocation and dispatch routines 
  67. *******************************************************
  68. */
  69. /*
  70. *******************************************************
  71. *                                                        *
  72. *                      CALLS MADE BY COMPONENTS              *
  73. *                                                        *
  74. *******************************************************
  75. */
  76. /*
  77. *******************************************************
  78. * Component Management routines
  79. *******************************************************
  80. */
  81. /*
  82. *******************************************************
  83. * Component Instance Management routines
  84. *******************************************************
  85. */
  86. /* useful helper routines for convenient method dispatching */
  87. #if GENERATINGPOWERPC
  88. #else
  89. #endif
  90. /*
  91. *******************************************************
  92. * Private component routines
  93. *******************************************************
  94. */
  95. /* these need to go into the secret or private library*/
  96. /*
  97. *******************************************************
  98. *                                                        *
  99. *              Direct calls to the Components                *
  100. *                                                        *
  101. *******************************************************
  102. */
  103. /* Old style names*/
  104. /* New style names*/
  105.  
  106. #ifndef CALLCOMPONENT_BASENAME
  107.     #error CALLCOMPONENT_BASENAME must be defined to use this file
  108. #endif
  109. #ifndef CALLCOMPONENT_GLOBALS
  110.     #error CALLCOMPONENT_GLOBALS must be defined to use this file
  111. #endif
  112. #define ADD_CALLCOMPONENT_BASENAME(name) CALLCOMPONENT_BASENAME()##name
  113.  
  114. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Open) (CALLCOMPONENT_GLOBALS(), ComponentInstance  self);
  115.  
  116. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Close) (CALLCOMPONENT_GLOBALS(), ComponentInstance  self);
  117.  
  118. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(CanDo) (CALLCOMPONENT_GLOBALS(), short  ftnNumber);
  119.  
  120. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Version) (CALLCOMPONENT_GLOBALS());
  121.  
  122. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Register) (CALLCOMPONENT_GLOBALS());
  123.  
  124. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Target) (CALLCOMPONENT_GLOBALS(), ComponentInstance  target);
  125.  
  126. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(Unregister) (CALLCOMPONENT_GLOBALS());
  127.  
  128. extern pascal ComponentResult ADD_CALLCOMPONENT_BASENAME(GetMPWorkFunction) (CALLCOMPONENT_GLOBALS(), ComponentMPWorkFunctionUPP * workFunction, void ** refCon);
  129.  
  130. /* UPP call backs */
  131. /* ProcInfos */
  132. #endif
  133.  
  134. #endif /* __COMPONENTS_K__ */
  135.  
  136.